
  def create_Rect
      model = Sketchup.active_model
      group = model.active_entities.add_group
      entities = group.entities

      prompts = ["长度", "宽度", "高度"]
  		defaults = ["1000", "1000", "1000"]
  		input = UI.inputbox(prompts, defaults, "创建矩形柱")

			points = [
				Geom::Point3d.new(0,   0,   0),
				Geom::Point3d.new(input[0].to_f.mm, 0,   0),
				Geom::Point3d.new(input[0].to_f.mm, input[1].to_f.mm, 0),
				Geom::Point3d.new(0,   input[1].to_f.mm, 0)
			]
			face = entities.add_face(points)
			face.reverse! unless face.normal.samedirection? Z_AXIS
		  face.pushpull(input[2].to_f.mm)
		    #group.material = input[-1]
      model.commit_operation
  end
